" Vim syntax file
" Language:     pgsql
" Maintainer:   Devrim GUNDUZ <devrim@PostgreSQL.org>
" Last Change:  $Date: 2006/05/03 02:12:04 $
" Filenames:    *.pgsql *.plpgsql
" URL:		http://www.gunduz.org/postgresql/pgsql.vim
" Note:		The definitions below are for PostgreSQL 8.1.3, some versions may differ.
" Changelog:	Thanks to Todd A. Cook for the updates

" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
  syntax clear
elseif exists("b:current_syntax")
  finish
endif

" Always ignore case 
syn case ignore

" General keywords which don't fall into other categories
syn keyword pgsqlKeyword	 abort alter aggregate analyze and as alias add
syn keyword pgsqlKeyword	 begin by before
syn keyword pgsqlKeyword	 conversion cascade current_date current_time current_timestamp class close
syn keyword pgsqlKeyword	 cluster checkpoint check comment
syn keyword pgsqlKeyword	 cast cascade character check column columns constraint create copy
syn keyword pgsqlKeyword	 database domain databases default delete distinct drop declare deallocate desc
syn keyword pgsqlKeyword	 deferrable deferred defaults do diagnostics
syn keyword pgsqlKeyword	 explain end exists execute exclusion found exception except each exit
syn keyword pgsqlKeyword	 function foreign from full fetch force for
syn keyword pgsqlKeyword	 group grant global get
syn keyword pgsqlKeyword	 having 
syn keyword pgsqlKeyword	 index into immutable inner initially immediate inherits instead insert in if
syn keyword pgsqlKeyword	 join
syn keyword pgsqlKeyword	 key 
syn keyword pgsqlKeyword	 language lock local limit left load loop
syn keyword pgsqlKeyword	 max min move match
syn keyword pgsqlKeyword	 notify no new null next
syn keyword pgsqlKeyword	 or operator outer order old on out open
syn keyword pgsqlKeyword	 prepare plpgsql primary password primary privilege procedure partial prepared
syn keyword pgsqlKeyword	 partition preserve perform
syn keyword pgsqlKeyword	 role replace reindex release reset revoke rollback references row rows rule restrict
syn keyword pgsqlKeyword	 returns return 
syn keyword pgsqlKeyword	 select set strict schema sequence savepoint simple system stable setof
syn keyword pgsqlKeyword	 truncate to tranaction trigger table tables temp temporary tablespace type
syn keyword pgsqlKeyword	 update unique unlisten using
syn keyword pgsqlKeyword	 verbose view values varying vacuum
syn keyword pgsqlKeyword	 where with

" Special values
syn keyword pgsqlSpecial	 false null true

" Strings (single- and double-quote)
syn region pgsqlString		 start=+"+  skip=+\\\\\|\\"+  end=+"+
syn region pgsqlString		 start=+'+  skip=+\\\\\|\\'+  end=+'+

" Numbers and hexidecimal values
syn match pgsqlNumber		 "-\=\<[0-9]*\>"
syn match pgsqlNumber		 "-\=\<[0-9]*\.[0-9]*\>"
syn match pgsqlNumber		 "-\=\<[0-9]*e[+-]\=[0-9]*\>"
syn match pgsqlNumber		 "-\=\<[0-9]*\.[0-9]*e[+-]\=[0-9]*\>"
syn match pgsqlNumber		 "\<0x[abcdefABCDEF0-9]*\>"

" User variables
syn match pgsqlVariable		 "@\a*[A-Za-z0-9]*[._]*[A-Za-z0-9]*"

" Comments (c-style, pgsql-style and modified sql-style)
syn region pgsqlComment		 start="/\*"  end="\*/"
syn match pgsqlComment		 "#.*"
syn match pgsqlComment		 "--.*"
syn sync ccomment pgsqlComment

" Column types

syn keyword pgsqlType		 abstime aclitem  anyarray anyelement bigint bit bit varying bigint bigserial 
syn keyword pgsqlType		 boolean box bytea char character "character varying" cid cidr circle cstring 
syn keyword pgsqlType		 double date precision inet int2vector integer int2 int4 int8 internal interval 
syn keyword pgsqlType		 language_handler line lseg 
syn keyword pgsqlType		 macaddr money name numeric oid oidvector opaque path point polygon real record 
syn keyword pgsqlType		 refcursor regclass regoper regoperator regproc regprocedure regtype reltime 
syn keyword pgsqlType		 smallint smgr text tid timestamp without time zone timestamp with time zone 
syn keyword pgsqlType		 time without time zone time with time zone tinterval "trigger" 
syn keyword pgsqlType		 xid 

syn region pgsqlType		 start="float\W" end="."me=s-1
syn region pgsqlType		 start="float$" end="."me=s-1
syn region pgsqlType		 start="float(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="double\W" end="."me=s-1
syn region pgsqlType		 start="double$" end="."me=s-1
syn region pgsqlType		 start="double(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="double precision\W" end="."me=s-1
syn region pgsqlType		 start="double precision$" end="."me=s-1
syn region pgsqlType		 start="double precision(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="real\W" end="."me=s-1
syn region pgsqlType		 start="real$" end="."me=s-1
syn region pgsqlType		 start="real(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="numeric(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="decimal(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="\Wtimestamp\W" end="."me=s-1
syn region pgsqlType		 start="\Wtimestamp$" end="."me=s-1
syn region pgsqlType		 start="\Wtimestamp(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="^timestamp\W" end="."me=s-1
syn region pgsqlType		 start="^timestamp$" end="."me=s-1
syn region pgsqlType		 start="^timestamp(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="\Wyear(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="^year(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="^char(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="^varchar(" end=")" contains=pgsqlNumber,pgsqlVariable
syn region pgsqlType		 start="\Wset(" end=")" contains=pgsqlString,pgsqlVariable
syn region pgsqlType		 start="^set(" end=")" contains=pgsqlString,pgsqlVariable

" Logical, string and  numeric operators
syn keyword pgsqlOperator	 between not and or is in like regexp rlike binary exists
syn region pgsqlOperator	 start="isnull(" end=")" contains=ALL
syn region pgsqlOperator	 start="coalesce(" end=")" contains=ALL
syn region pgsqlOperator	 start="interval(" end=")" contains=ALL

" Control flow functions
syn keyword pgsqlFlow		 case when then else end
syn region pgsqlFlow		 start="ifnull("   end=")"  contains=ALL
syn region pgsqlFlow		 start="nullif("   end=")"  contains=ALL
syn region pgsqlFlow		 start="if("	   end=")"  contains=ALL

" General Functions
"
syn region pgsqlFunction		start="abbrev'(" end=")" contains=ALL
syn region pgsqlFunction		start="abs'(" end=")" contains=ALL
syn region pgsqlFunction		start="abstime'(" end=")" contains=ALL
syn region pgsqlFunction		start="abstimeeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="abstimege'(" end=")" contains=ALL
syn region pgsqlFunction		start="abstimegt'(" end=")" contains=ALL
syn region pgsqlFunction		start="abstimele'(" end=")" contains=ALL
syn region pgsqlFunction		start="abstimelt'(" end=")" contains=ALL
syn region pgsqlFunction		start="abstimene'(" end=")" contains=ALL
syn region pgsqlFunction		start="abstimerecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="abstimesend'(" end=")" contains=ALL
syn region pgsqlFunction		start="aclcontains'(" end=")" contains=ALL
syn region pgsqlFunction		start="aclinsert'(" end=")" contains=ALL
syn region pgsqlFunction		start="aclitemeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="aclremove'(" end=")" contains=ALL
syn region pgsqlFunction		start="acos'(" end=")" contains=ALL
syn region pgsqlFunction		start="age'(" end=")" contains=ALL
syn region pgsqlFunction		start="anyarray_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="anyarray_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="area'(" end=")" contains=ALL
syn region pgsqlFunction		start="areajoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="areasel'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_append'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_cat'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_coerce'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_dims'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_length_coerce'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_lower'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_prepend'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_to_string'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_type_length_coerce'(" end=")" contains=ALL
syn region pgsqlFunction		start="array_upper'(" end=")" contains=ALL
syn region pgsqlFunction		start="ascii'(" end=")" contains=ALL
syn region pgsqlFunction		start="ascii_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="ascii_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="asin'(" end=")" contains=ALL
syn region pgsqlFunction		start="atan'(" end=")" contains=ALL
syn region pgsqlFunction		start="atan2'(" end=")" contains=ALL
syn region pgsqlFunction		start="big5_to_euc_tw'(" end=")" contains=ALL
syn region pgsqlFunction		start="big5_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="big5_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="bit'(" end=")" contains=ALL
syn region pgsqlFunction		start="bit_length'(" end=")" contains=ALL
syn region pgsqlFunction		start="bit_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="bit_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitand'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitcat'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitcmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="biteq'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitge'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitgt'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitle'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitlt'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitne'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitnot'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitor'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitshiftleft'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitshiftright'(" end=")" contains=ALL
syn region pgsqlFunction		start="bitxor'(" end=")" contains=ALL
syn region pgsqlFunction		start="bool'(" end=")" contains=ALL
syn region pgsqlFunction		start="booland_statefunc'(" end=")" contains=ALL
syn region pgsqlFunction		start="booleq'(" end=")" contains=ALL
syn region pgsqlFunction		start="boolge'(" end=")" contains=ALL
syn region pgsqlFunction		start="boolgt'(" end=")" contains=ALL
syn region pgsqlFunction		start="boolle'(" end=")" contains=ALL
syn region pgsqlFunction		start="boollt'(" end=")" contains=ALL
syn region pgsqlFunction		start="boolne'(" end=")" contains=ALL
syn region pgsqlFunction		start="boolor_statefunc'(" end=")" contains=ALL
syn region pgsqlFunction		start="boolrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="boolsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="box'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_above'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_above_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_add'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_below'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_below_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_center'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_contain'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_contained'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_distance'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_div'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_intersect'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_left'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_overabove'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_overbelow'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_overlap'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_overleft'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_overright'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_right'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_same'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="box_sub'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchar'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchar_larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchar_pattern_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchar_pattern_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchar_pattern_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchar_pattern_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchar_pattern_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchar_pattern_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchar_smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharcmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchareq'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharge'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchargt'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpchariclike'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharicnlike'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharicregexeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharicregexne'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharle'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharlike'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharlt'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharne'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharnlike'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharregexeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharregexne'(" end=")" contains=ALL
syn region pgsqlFunction		start="bpcharsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="broadcast'(" end=")" contains=ALL
syn region pgsqlFunction		start="btabstimecmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btarraycmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btbeginscan'(" end=")" contains=ALL
syn region pgsqlFunction		start="btboolcmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btbpchar_pattern_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btbuild'(" end=")" contains=ALL
syn region pgsqlFunction		start="btbulkdelete'(" end=")" contains=ALL
syn region pgsqlFunction		start="btcharcmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btcostestimate'(" end=")" contains=ALL
syn region pgsqlFunction		start="btendscan'(" end=")" contains=ALL
syn region pgsqlFunction		start="btfloat48cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btfloat4cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btfloat84cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btfloat8cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btgetmulti'(" end=")" contains=ALL
syn region pgsqlFunction		start="btgettuple'(" end=")" contains=ALL
syn region pgsqlFunction		start="btinsert'(" end=")" contains=ALL
syn region pgsqlFunction		start="btint24cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btint28cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btint2cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btint42cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btint48cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btint4cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btint82cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btint84cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btint8cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btmarkpos'(" end=")" contains=ALL
syn region pgsqlFunction		start="btname_pattern_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btnamecmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btoidcmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btoidvectorcmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btreltimecmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btrescan'(" end=")" contains=ALL
syn region pgsqlFunction		start="btrestrpos'(" end=")" contains=ALL
syn region pgsqlFunction		start="btrim'(" end=")" contains=ALL
syn region pgsqlFunction		start="btrim'(" end=")" contains=ALL
syn region pgsqlFunction		start="btrim'(" end=")" contains=ALL
syn region pgsqlFunction		start="bttext_pattern_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="bttextcmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="bttintervalcmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="btvacuumcleanup'(" end=")" contains=ALL
syn region pgsqlFunction		start="byteacat'(" end=")" contains=ALL
syn region pgsqlFunction		start="byteacmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="byteaeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="byteage'(" end=")" contains=ALL
syn region pgsqlFunction		start="byteagt'(" end=")" contains=ALL
syn region pgsqlFunction		start="byteale'(" end=")" contains=ALL
syn region pgsqlFunction		start="bytealike'(" end=")" contains=ALL
syn region pgsqlFunction		start="bytealt'(" end=")" contains=ALL
syn region pgsqlFunction		start="byteane'(" end=")" contains=ALL
syn region pgsqlFunction		start="byteanlike'(" end=")" contains=ALL
syn region pgsqlFunction		start="bytearecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="byteasend'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_div_flt4'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_div_flt8'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_div_int2'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_div_int4'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_mul_flt4'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_mul_flt8'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_mul_int2'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_mul_int4'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="cash_words'(" end=")" contains=ALL
syn region pgsqlFunction		start="cashlarger'(" end=")" contains=ALL
syn region pgsqlFunction		start="cashsmaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="cbrt'(" end=")" contains=ALL
syn region pgsqlFunction		start="ceil'(" end=")" contains=ALL
syn region pgsqlFunction		start="ceiling'(" end=")" contains=ALL
syn region pgsqlFunction		start="center'(" end=")" contains=ALL
syn region pgsqlFunction		start="char'(" end=")" contains=ALL
syn region pgsqlFunction		start="char_length'(" end=")" contains=ALL
syn region pgsqlFunction		start="char_length'(" end=")" contains=ALL
syn region pgsqlFunction		start="character_length'(" end=")" contains=ALL
syn region pgsqlFunction		start="chareq'(" end=")" contains=ALL
syn region pgsqlFunction		start="charge'(" end=")" contains=ALL
syn region pgsqlFunction		start="chargt'(" end=")" contains=ALL
syn region pgsqlFunction		start="charle'(" end=")" contains=ALL
syn region pgsqlFunction		start="charlt'(" end=")" contains=ALL
syn region pgsqlFunction		start="charne'(" end=")" contains=ALL
syn region pgsqlFunction		start="charrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="charsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="chr'(" end=")" contains=ALL
syn region pgsqlFunction		start="cideq'(" end=")" contains=ALL
syn region pgsqlFunction		start="cidr'(" end=")" contains=ALL
syn region pgsqlFunction		start="cidr_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="cidr_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="cidrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="cidsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_above'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_add_pt'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_below'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_center'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_contain'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_contain_pt'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_contained'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_distance'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_div_pt'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_left'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_mul_pt'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_overabove'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_overbelow'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_overlap'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_overleft'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_overright'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_right'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_same'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="circle_sub_pt'(" end=")" contains=ALL
syn region pgsqlFunction		start="close_lb'(" end=")" contains=ALL
syn region pgsqlFunction		start="close_ls'(" end=")" contains=ALL
syn region pgsqlFunction		start="close_lseg'(" end=")" contains=ALL
syn region pgsqlFunction		start="close_pb'(" end=")" contains=ALL
syn region pgsqlFunction		start="close_pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="close_ps'(" end=")" contains=ALL
syn region pgsqlFunction		start="close_sb'(" end=")" contains=ALL
syn region pgsqlFunction		start="close_sl'(" end=")" contains=ALL
syn region pgsqlFunction		start="col_description'(" end=")" contains=ALL
syn region pgsqlFunction		start="contjoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="contsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="convert'(" end=")" contains=ALL
syn region pgsqlFunction		start="convert_using'(" end=")" contains=ALL
syn region pgsqlFunction		start="cos'(" end=")" contains=ALL
syn region pgsqlFunction		start="cot'(" end=")" contains=ALL
syn region pgsqlFunction		start="current_database'(" end=")" contains=ALL
syn region pgsqlFunction		start="current_schema'(" end=")" contains=ALL
syn region pgsqlFunction		start="current_schemas'(" end=")" contains=ALL
syn region pgsqlFunction		start="current_setting'(" end=")" contains=ALL
syn region pgsqlFunction		start="current_user'(" end=")" contains=ALL
syn region pgsqlFunction		start="currtid'(" end=")" contains=ALL
syn region pgsqlFunction		start="currtid2'(" end=")" contains=ALL
syn region pgsqlFunction		start="currval'(" end=")" contains=ALL
syn region pgsqlFunction		start="date'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_cmp_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_cmp_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_eq_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_eq_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_ge_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_ge_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_gt_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_gt_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_le_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_le_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_lt_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_lt_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_mi_interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_mii'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_ne_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_ne_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_part'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_pl_interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_pli'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="date_trunc'(" end=")" contains=ALL
syn region pgsqlFunction		start="datetime_pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="datetimetz_pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="dcbrt'(" end=")" contains=ALL
syn region pgsqlFunction		start="decode'(" end=")" contains=ALL
syn region pgsqlFunction		start="degrees'(" end=")" contains=ALL
syn region pgsqlFunction		start="dexp'(" end=")" contains=ALL
syn region pgsqlFunction		start="diagonal'(" end=")" contains=ALL
syn region pgsqlFunction		start="diameter'(" end=")" contains=ALL
syn region pgsqlFunction		start="dist_cpoly'(" end=")" contains=ALL
syn region pgsqlFunction		start="dist_lb'(" end=")" contains=ALL
syn region pgsqlFunction		start="dist_pb'(" end=")" contains=ALL
syn region pgsqlFunction		start="dist_pc'(" end=")" contains=ALL
syn region pgsqlFunction		start="dist_pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="dist_ppath'(" end=")" contains=ALL
syn region pgsqlFunction		start="dist_ps'(" end=")" contains=ALL
syn region pgsqlFunction		start="dist_sb'(" end=")" contains=ALL
syn region pgsqlFunction		start="dist_sl'(" end=")" contains=ALL
syn region pgsqlFunction		start="dlog1'(" end=")" contains=ALL
syn region pgsqlFunction		start="dlog10'(" end=")" contains=ALL
syn region pgsqlFunction		start="dpow'(" end=")" contains=ALL
syn region pgsqlFunction		start="dround'(" end=")" contains=ALL
syn region pgsqlFunction		start="dsqrt'(" end=")" contains=ALL
syn region pgsqlFunction		start="dtrunc'(" end=")" contains=ALL
syn region pgsqlFunction		start="encode'(" end=")" contains=ALL
syn region pgsqlFunction		start="eqjoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="eqsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="euc_cn_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="euc_cn_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="euc_jp_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="euc_jp_to_sjis'(" end=")" contains=ALL
syn region pgsqlFunction		start="euc_jp_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="euc_kr_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="euc_kr_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="euc_tw_to_big5'(" end=")" contains=ALL
syn region pgsqlFunction		start="euc_tw_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="euc_tw_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="exp'(" end=")" contains=ALL
syn region pgsqlFunction		start="factorial'(" end=")" contains=ALL
syn region pgsqlFunction		start="family'(" end=")" contains=ALL
syn region pgsqlFunction		start="flatfile_update_trigger'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4'(" end=")" contains=ALL
syn region pgsqlFunction		start="float48div'(" end=")" contains=ALL
syn region pgsqlFunction		start="float48eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="float48ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="float48gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="float48le'(" end=")" contains=ALL
syn region pgsqlFunction		start="float48lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="float48mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="float48mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="float48ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="float48pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4_accum'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4abs'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4div'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4le'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4send'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4um'(" end=")" contains=ALL
syn region pgsqlFunction		start="float4up'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8'(" end=")" contains=ALL
syn region pgsqlFunction		start="float84div'(" end=")" contains=ALL
syn region pgsqlFunction		start="float84eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="float84ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="float84gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="float84le'(" end=")" contains=ALL
syn region pgsqlFunction		start="float84lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="float84mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="float84mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="float84ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="float84pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8_accum'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8_avg'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8_stddev'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8_variance'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8abs'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8div'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8le'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8send'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8um'(" end=")" contains=ALL
syn region pgsqlFunction		start="float8up'(" end=")" contains=ALL
syn region pgsqlFunction		start="floor'(" end=")" contains=ALL
syn region pgsqlFunction		start="floor'(" end=")" contains=ALL
syn region pgsqlFunction		start="flt4_mul_cash'(" end=")" contains=ALL
syn region pgsqlFunction		start="flt8_mul_cash'(" end=")" contains=ALL
syn region pgsqlFunction		start="fmgr_c_validator'(" end=")" contains=ALL
syn region pgsqlFunction		start="fmgr_internal_validator'(" end=")" contains=ALL
syn region pgsqlFunction		start="fmgr_sql_validator'(" end=")" contains=ALL
syn region pgsqlFunction		start="format_type'(" end=")" contains=ALL
syn region pgsqlFunction		start="gb18030_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="gbk_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="generate_series'(" end=")" contains=ALL
syn region pgsqlFunction		start="get_bit'(" end=")" contains=ALL
syn region pgsqlFunction		start="get_byte'(" end=")" contains=ALL
syn region pgsqlFunction		start="getdatabaseencoding'(" end=")" contains=ALL
syn region pgsqlFunction		start="getpgusername'(" end=")" contains=ALL
syn region pgsqlFunction		start="gist_box_compress'(" end=")" contains=ALL
syn region pgsqlFunction		start="gist_box_consistent'(" end=")" contains=ALL
syn region pgsqlFunction		start="gist_box_decompress'(" end=")" contains=ALL
syn region pgsqlFunction		start="gist_box_penalty'(" end=")" contains=ALL
syn region pgsqlFunction		start="gist_box_picksplit'(" end=")" contains=ALL
syn region pgsqlFunction		start="gist_box_same'(" end=")" contains=ALL
syn region pgsqlFunction		start="gist_box_union'(" end=")" contains=ALL
syn region pgsqlFunction		start="gist_circle_compress'(" end=")" contains=ALL
syn region pgsqlFunction		start="gist_circle_consistent'(" end=")" contains=ALL
syn region pgsqlFunction		start="gist_poly_compress'(" end=")" contains=ALL
syn region pgsqlFunction		start="gist_poly_consistent'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistbeginscan'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistbuild'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistbulkdelete'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistcostestimate'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistendscan'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistgetmulti'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistgettuple'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistinsert'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistmarkpos'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistrescan'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistrestrpos'(" end=")" contains=ALL
syn region pgsqlFunction		start="gistvacuumcleanup'(" end=")" contains=ALL
syn region pgsqlFunction		start="has_database_privilege'(" end=")" contains=ALL
syn region pgsqlFunction                start="has_function_privilege'(" end=")" contains=ALL
syn region pgsqlFunction		start="has_language_privilege'(" end=")" contains=ALL
syn region pgsqlFunction		start="has_schema_privilege'(" end=")" contains=ALL
syn region pgsqlFunction		start="has_table_privilege'(" end=")" contains=ALL
syn region pgsqlFunction		start="has_tablespace_privilege'(" end=")" contains=ALL
syn region pgsqlFunction		start="hash_aclitem'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashbeginscan'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashbpchar'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashbuild'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashbulkdelete'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashchar'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashcostestimate'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashendscan'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashfloat4'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashfloat8'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashgetmulti'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashgettuple'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashinet'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashinsert'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashint2'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashint2vector'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashint4'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashint8'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashmacaddr'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashmarkpos'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashname'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashoid'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashoidvector'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashrescan'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashrestrpos'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashtext'(" end=")" contains=ALL
syn region pgsqlFunction		start="hashvarlena'(" end=")" contains=ALL
syn region pgsqlFunction		start="height'(" end=")" contains=ALL
syn region pgsqlFunction		start="host'(" end=")" contains=ALL
syn region pgsqlFunction		start="hostmask'(" end=")" contains=ALL
syn region pgsqlFunction		start="iclikejoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="iclikesel'(" end=")" contains=ALL
syn region pgsqlFunction		start="icnlikejoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="icnlikesel'(" end=")" contains=ALL
syn region pgsqlFunction		start="icregexeqjoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="icregexeqsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="icregexnejoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="icregexnesel'(" end=")" contains=ALL
syn region pgsqlFunction		start="inet'(" end=")" contains=ALL
syn region pgsqlFunction		start="inet_client_addr'(" end=")" contains=ALL
syn region pgsqlFunction		start="inet_client_port'(" end=")" contains=ALL
syn region pgsqlFunction		start="inet_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="inet_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="inet_server_addr'(" end=")" contains=ALL
syn region pgsqlFunction		start="inet_server_port'(" end=")" contains=ALL
syn region pgsqlFunction		start="initcap'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2'(" end=")" contains=ALL
syn region pgsqlFunction		start="int24div'(" end=")" contains=ALL
syn region pgsqlFunction		start="int24eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="int24ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="int24gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int24le'(" end=")" contains=ALL
syn region pgsqlFunction		start="int24lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int24mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="int24mod'(" end=")" contains=ALL
syn region pgsqlFunction		start="int24mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="int24ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="int24pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="int28eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="int28ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="int28gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int28le'(" end=")" contains=ALL
syn region pgsqlFunction		start="int28lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int28ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2_accum'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2_avg_accum'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2_mul_cash'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2_sum'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2abs'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2and'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2div'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2le'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2mod'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2not'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2or'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2send'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2shl'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2shr'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2um'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2up'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2vectoreq'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2vectorrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2vectorsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="int2xor'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4'(" end=")" contains=ALL
syn region pgsqlFunction		start="int42div'(" end=")" contains=ALL
syn region pgsqlFunction		start="int42eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="int42ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="int42gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int42le'(" end=")" contains=ALL
syn region pgsqlFunction		start="int42lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int42mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="int42mod'(" end=")" contains=ALL
syn region pgsqlFunction		start="int42mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="int42ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="int42pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="int48div'(" end=")" contains=ALL
syn region pgsqlFunction		start="int48eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="int48ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="int48gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int48le'(" end=")" contains=ALL
syn region pgsqlFunction		start="int48lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int48mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="int48mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="int48ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="int48pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4_accum'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4_avg_accum'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4_mul_cash'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4_sum'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4abs'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4and'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4div'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4inc'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4le'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4mod'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4not'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4notin'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4or'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4send'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4shl'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4shr'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4um'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4up'(" end=")" contains=ALL
syn region pgsqlFunction		start="int4xor'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8'(" end=")" contains=ALL
syn region pgsqlFunction		start="int82eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="int82ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="int82gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int82le'(" end=")" contains=ALL
syn region pgsqlFunction		start="int82lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int82ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="int84div'(" end=")" contains=ALL
syn region pgsqlFunction		start="int84eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="int84ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="int84gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int84le'(" end=")" contains=ALL
syn region pgsqlFunction		start="int84lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int84mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="int84mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="int84ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="int84pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8_accum'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8_avg'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8_sum'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8abs'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8and'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8div'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8inc'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8le'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8mod'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8not'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8or'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8send'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8shl'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8shr'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8um'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8up'(" end=")" contains=ALL
syn region pgsqlFunction		start="int8xor'(" end=")" contains=ALL
syn region pgsqlFunction		start="integer_pl_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="inter_lb'(" end=")" contains=ALL
syn region pgsqlFunction		start="inter_sb'(" end=")" contains=ALL
syn region pgsqlFunction		start="inter_sl'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_accum'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_avg'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_div'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_hash'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_pl_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_pl_time'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_pl_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_pl_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_pl_timetz'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="interval_um'(" end=")" contains=ALL
syn region pgsqlFunction		start="intinterval'(" end=")" contains=ALL
syn region pgsqlFunction		start="isclosed'(" end=")" contains=ALL
syn region pgsqlFunction		start="isfalse'(" end=")" contains=ALL
syn region pgsqlFunction		start="isfinite'(" end=")" contains=ALL
syn region pgsqlFunction		start="ishorizontal'(" end=")" contains=ALL
syn region pgsqlFunction		start="isnotfalse'(" end=")" contains=ALL
syn region pgsqlFunction		start="isnottrue'(" end=")" contains=ALL
syn region pgsqlFunction		start="iso8859_1_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="iso8859_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="iso_to_koi8r'(" end=")" contains=ALL
syn region pgsqlFunction		start="iso_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="iso_to_win1251'(" end=")" contains=ALL
syn region pgsqlFunction		start="iso_to_win866'(" end=")" contains=ALL
syn region pgsqlFunction		start="isopen'(" end=")" contains=ALL
syn region pgsqlFunction		start="isparallel'(" end=")" contains=ALL
syn region pgsqlFunction		start="isperp'(" end=")" contains=ALL
syn region pgsqlFunction		start="istrue'(" end=")" contains=ALL
syn region pgsqlFunction		start="isvertical'(" end=")" contains=ALL
syn region pgsqlFunction		start="johab_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="justify_days'(" end=")" contains=ALL
syn region pgsqlFunction		start="justify_hours'(" end=")" contains=ALL
syn region pgsqlFunction		start="koi8r_to_iso'(" end=")" contains=ALL
syn region pgsqlFunction		start="koi8r_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="koi8r_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="koi8r_to_win1251'(" end=")" contains=ALL
syn region pgsqlFunction		start="koi8r_to_win866'(" end=")" contains=ALL
syn region pgsqlFunction		start="lastval'(" end=")" contains=ALL
syn region pgsqlFunction		start="latin1_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="latin2_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="latin2_to_win1250'(" end=")" contains=ALL
syn region pgsqlFunction		start="latin3_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="latin4_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="length'(" end=")" contains=ALL
syn region pgsqlFunction		start="like'(" end=")" contains=ALL
syn region pgsqlFunction		start="like_escape'(" end=")" contains=ALL
syn region pgsqlFunction		start="likejoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="likesel'(" end=")" contains=ALL
syn region pgsqlFunction		start="line'(" end=")" contains=ALL
syn region pgsqlFunction		start="line_distance'(" end=")" contains=ALL
syn region pgsqlFunction		start="line_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="line_horizontal'(" end=")" contains=ALL
syn region pgsqlFunction		start="line_interpt'(" end=")" contains=ALL
syn region pgsqlFunction		start="line_intersect'(" end=")" contains=ALL
syn region pgsqlFunction		start="line_parallel'(" end=")" contains=ALL
syn region pgsqlFunction		start="line_perp'(" end=")" contains=ALL
syn region pgsqlFunction		start="line_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="line_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="line_vertical'(" end=")" contains=ALL
syn region pgsqlFunction		start="ln'(" end=")" contains=ALL
syn region pgsqlFunction		start="lo_close'(" end=")" contains=ALL
syn region pgsqlFunction		start="lo_creat'(" end=")" contains=ALL
syn region pgsqlFunction		start="lo_create'(" end=")" contains=ALL
syn region pgsqlFunction		start="lo_export'(" end=")" contains=ALL
syn region pgsqlFunction		start="lo_import'(" end=")" contains=ALL
syn region pgsqlFunction		start="lo_lseek'(" end=")" contains=ALL
syn region pgsqlFunction		start="lo_open'(" end=")" contains=ALL
syn region pgsqlFunction		start="lo_tell'(" end=")" contains=ALL
syn region pgsqlFunction		start="lo_unlink'(" end=")" contains=ALL
syn region pgsqlFunction		start="log'(" end=")" contains=ALL
syn region pgsqlFunction		start="loread'(" end=")" contains=ALL
syn region pgsqlFunction		start="lower'(" end=")" contains=ALL
syn region pgsqlFunction		start="lowrite'(" end=")" contains=ALL
syn region pgsqlFunction		start="lpad'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_center'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_distance'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_horizontal'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_interpt'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_intersect'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_length'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_parallel'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_perp'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="lseg_vertical'(" end=")" contains=ALL
syn region pgsqlFunction		start="ltrim'(" end=")" contains=ALL
syn region pgsqlFunction		start="macaddr'(" end=")" contains=ALL
syn region pgsqlFunction		start="macaddr_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="macaddr_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="macaddr_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="macaddr_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="macaddr_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="macaddr_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="macaddr_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="macaddr_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="macaddr_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="makeaclitem'(" end=")" contains=ALL
syn region pgsqlFunction		start="masklen'(" end=")" contains=ALL
syn region pgsqlFunction		start="md5'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_ascii'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_big5'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_euc_cn'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_euc_jp'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_euc_kr'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_euc_tw'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_iso'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_koi8r'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_latin1'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_latin2'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_latin3'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_latin4'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_sjis'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_win1250'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_win1251'(" end=")" contains=ALL
syn region pgsqlFunction		start="mic_to_win866'(" end=")" contains=ALL
syn region pgsqlFunction		start="mktinterval'(" end=")" contains=ALL
syn region pgsqlFunction		start="mod'(" end=")" contains=ALL
syn region pgsqlFunction		start="mul_d_interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="name'(" end=")" contains=ALL
syn region pgsqlFunction		start="name_pattern_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="name_pattern_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="name_pattern_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="name_pattern_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="name_pattern_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="name_pattern_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="nameeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="namege'(" end=")" contains=ALL
syn region pgsqlFunction		start="namegt'(" end=")" contains=ALL
syn region pgsqlFunction		start="nameiclike'(" end=")" contains=ALL
syn region pgsqlFunction		start="nameicnlike'(" end=")" contains=ALL
syn region pgsqlFunction		start="nameicregexeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="nameicregexne'(" end=")" contains=ALL
syn region pgsqlFunction		start="namele'(" end=")" contains=ALL
syn region pgsqlFunction		start="namelike'(" end=")" contains=ALL
syn region pgsqlFunction		start="namelt'(" end=")" contains=ALL
syn region pgsqlFunction		start="namene'(" end=")" contains=ALL
syn region pgsqlFunction		start="namenlike'(" end=")" contains=ALL
syn region pgsqlFunction		start="namerecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="nameregexeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="nameregexne'(" end=")" contains=ALL
syn region pgsqlFunction		start="namesend'(" end=")" contains=ALL
syn region pgsqlFunction		start="neqjoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="neqsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="netmask'(" end=")" contains=ALL
syn region pgsqlFunction		start="network'(" end=")" contains=ALL
syn region pgsqlFunction		start="network_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="network_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="network_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="network_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="network_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="network_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="network_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="network_sub'(" end=")" contains=ALL
syn region pgsqlFunction		start="network_subeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="network_sup'(" end=")" contains=ALL
syn region pgsqlFunction		start="network_supeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="nextval'(" end=")" contains=ALL
syn region pgsqlFunction		start="nlikejoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="nlikesel'(" end=")" contains=ALL
syn region pgsqlFunction		start="nonnullvalue'(" end=")" contains=ALL
syn region pgsqlFunction		start="notlike'(" end=")" contains=ALL
syn region pgsqlFunction		start="now'(" end=")" contains=ALL
syn region pgsqlFunction		start="npoints'(" end=")" contains=ALL
syn region pgsqlFunction		start="nullvalue'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_abs'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_accum'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_add'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_avg'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_div'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_exp'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_fac'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_inc'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_ln'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_log'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_mod'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_power'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_sqrt'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_stddev'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_sub'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_uminus'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_uplus'(" end=")" contains=ALL
syn region pgsqlFunction		start="numeric_variance'(" end=")" contains=ALL
syn region pgsqlFunction		start="obj_description'(" end=")" contains=ALL
syn region pgsqlFunction		start="obj_description'(" end=")" contains=ALL
syn region pgsqlFunction		start="octet_length'(" end=")" contains=ALL
syn region pgsqlFunction		start="oid'(" end=")" contains=ALL
syn region pgsqlFunction		start="oideq'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidge'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidgt'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidlarger'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidle'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidlt'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidne'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidnotin'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidsmaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidvectoreq'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidvectorge'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidvectorgt'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidvectorle'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidvectorlt'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidvectorne'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidvectorrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidvectorsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="oidvectortypes'(" end=")" contains=ALL
syn region pgsqlFunction		start="on_pb'(" end=")" contains=ALL
syn region pgsqlFunction		start="on_pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="on_ppath'(" end=")" contains=ALL
syn region pgsqlFunction		start="on_ps'(" end=")" contains=ALL
syn region pgsqlFunction		start="on_sb'(" end=")" contains=ALL
syn region pgsqlFunction		start="on_sl'(" end=")" contains=ALL
syn region pgsqlFunction		start="overlaps'(" end=")" contains=ALL
syn region pgsqlFunction		start="overlay'(" end=")" contains=ALL
syn region pgsqlFunction		start="overlay'(" end=")" contains=ALL
syn region pgsqlFunction		start="path'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_add'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_add_pt'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_center'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_contain_pt'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_distance'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_div_pt'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_inter'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_length'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_mul_pt'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_n_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_n_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_n_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_n_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_n_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_npoints'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="path_sub_pt'(" end=")" contains=ALL
syn region pgsqlFunction		start="pclose'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_backend_pid'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_cancel_backend'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_char_to_encoding'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_client_encoding'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_column_size'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_conversion_is_visible'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_database_size'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_database_size'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_encoding_to_char'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_function_is_visible'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_get_constraintdef'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_get_constraintdef'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_get_expr'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_get_indexdef'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_get_ruledef'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_get_ruledef'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_get_serial_sequence'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_get_triggerdef'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_get_userbyid'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_get_viewdef'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_has_role'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_lock_status'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_ls_dir'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_opclass_is_visible'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_operator_is_visible'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_postmaster_start_time'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_prepared_xact'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_read_file'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_relation_size'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_relation_size'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_reload_conf'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_rotate_logfile'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_show_all_settings'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_size_pretty'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_start_backup'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_file'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_backend_activity'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_backend_activity_start'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_backend_client_addr'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_backend_client_port'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_backend_dbid'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_backend_idset'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_backend_pid'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_backend_start'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_backend_userid'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_blocks_fetched'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_blocks_hit'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_db_blocks_fetched'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_db_blocks_hit'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_db_numbackends'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_db_xact_commit'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_db_xact_rollback'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_numscans'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_tuples_deleted'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_tuples_fetched'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_tuples_inserted'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_tuples_returned'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_get_tuples_updated'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stat_reset'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_stop_backup'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_table_is_visible'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_tablespace_databases'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_tablespace_size'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_tablespace_size'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_total_relation_size'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_total_relation_size'(" end=")" contains=ALL
syn region pgsqlFunction		start="pg_type_is_visible'(" end=")" contains=ALL
syn region pgsqlFunction		start="pi'(" end=")" contains=ALL
syn region pgsqlFunction		start="point'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_above'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_add'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_below'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_distance'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_div'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_horiz'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_left'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_mul'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_right'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_sub'(" end=")" contains=ALL
syn region pgsqlFunction		start="point_vert'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_above'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_below'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_center'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_contain'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_contain_pt'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_contained'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_distance'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_left'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_npoints'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_overabove'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_overbelow'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_overlap'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_overleft'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_overright'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_right'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_same'(" end=")" contains=ALL
syn region pgsqlFunction		start="poly_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="polygon'(" end=")" contains=ALL
syn region pgsqlFunction		start="popen'(" end=")" contains=ALL
syn region pgsqlFunction		start="position'(" end=")" contains=ALL
syn region pgsqlFunction		start="positionjoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="positionsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="pow'(" end=")" contains=ALL
syn region pgsqlFunction		start="power'(" end=")" contains=ALL
syn region pgsqlFunction		start="pt_contained_circle'(" end=")" contains=ALL
syn region pgsqlFunction		start="pt_contained_poly'(" end=")" contains=ALL
syn region pgsqlFunction		start="quote_ident'(" end=")" contains=ALL
syn region pgsqlFunction		start="quote_literal'(" end=")" contains=ALL
syn region pgsqlFunction		start="radians'(" end=")" contains=ALL
syn region pgsqlFunction		start="radius'(" end=")" contains=ALL
syn region pgsqlFunction		start="random'(" end=")" contains=ALL
syn region pgsqlFunction		start="record_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="record_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="regclass'(" end=")" contains=ALL
syn region pgsqlFunction		start="regclassrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="regclasssend'(" end=")" contains=ALL
syn region pgsqlFunction		start="regexeqjoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="regexeqsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="regexnejoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="regexnesel'(" end=")" contains=ALL
syn region pgsqlFunction		start="regexp_replace'(" end=")" contains=ALL
syn region pgsqlFunction		start="regoperatorrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="regoperatorsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="regoperrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="regopersend'(" end=")" contains=ALL
syn region pgsqlFunction		start="regprocedurerecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="regproceduresend'(" end=")" contains=ALL
syn region pgsqlFunction		start="regprocrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="regprocsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="regtyperecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="regtypesend'(" end=")" contains=ALL
syn region pgsqlFunction		start="reltime'(" end=")" contains=ALL
syn region pgsqlFunction		start="reltimeeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="reltimege'(" end=")" contains=ALL
syn region pgsqlFunction		start="reltimegt'(" end=")" contains=ALL
syn region pgsqlFunction		start="reltimele'(" end=")" contains=ALL
syn region pgsqlFunction		start="reltimelt'(" end=")" contains=ALL
syn region pgsqlFunction		start="reltimene'(" end=")" contains=ALL
syn region pgsqlFunction		start="reltimerecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="reltimesend'(" end=")" contains=ALL
syn region pgsqlFunction		start="repeat'(" end=")" contains=ALL
syn region pgsqlFunction		start="replace'(" end=")" contains=ALL
syn region pgsqlFunction		start="round'(" end=")" contains=ALL
syn region pgsqlFunction		start="rpad'(" end=")" contains=ALL
syn region pgsqlFunction		start="rt_box_inter'(" end=")" contains=ALL
syn region pgsqlFunction		start="rt_box_size'(" end=")" contains=ALL
syn region pgsqlFunction		start="rt_box_union'(" end=")" contains=ALL
syn region pgsqlFunction		start="rt_poly_inter'(" end=")" contains=ALL
syn region pgsqlFunction		start="rt_poly_size'(" end=")" contains=ALL
syn region pgsqlFunction		start="rt_poly_union'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtbeginscan'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtbuild'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtbulkdelete'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtcostestimate'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtendscan'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtgetmulti'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtgettuple'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtinsert'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtmarkpos'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtrescan'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtrestrpos'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtrim'(" end=")" contains=ALL
syn region pgsqlFunction		start="rtrim'(" end=")" contains=ALL
syn region pgsqlFunction		start="scalargtjoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="scalargtsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="scalarltjoinsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="scalarltsel'(" end=")" contains=ALL
syn region pgsqlFunction		start="session_user'(" end=")" contains=ALL
syn region pgsqlFunction		start="set_bit'(" end=")" contains=ALL
syn region pgsqlFunction		start="set_byte'(" end=")" contains=ALL
syn region pgsqlFunction		start="set_config'(" end=")" contains=ALL
syn region pgsqlFunction		start="set_masklen'(" end=")" contains=ALL
syn region pgsqlFunction		start="setseed'(" end=")" contains=ALL
syn region pgsqlFunction		start="setval'(" end=")" contains=ALL
syn region pgsqlFunction		start="sign'(" end=")" contains=ALL
syn region pgsqlFunction		start="similar_escape'(" end=")" contains=ALL
syn region pgsqlFunction		start="sin'(" end=")" contains=ALL
syn region pgsqlFunction		start="sjis_to_euc_jp'(" end=")" contains=ALL
syn region pgsqlFunction		start="sjis_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="sjis_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="slope'(" end=")" contains=ALL
syn region pgsqlFunction		start="smgreq'(" end=")" contains=ALL
syn region pgsqlFunction		start="smgrne'(" end=")" contains=ALL
syn region pgsqlFunction		start="split_part'(" end=")" contains=ALL
syn region pgsqlFunction		start="sqrt'(" end=")" contains=ALL
syn region pgsqlFunction		start="sqrt'(" end=")" contains=ALL
syn region pgsqlFunction		start="string_to_array'(" end=")" contains=ALL
syn region pgsqlFunction		start="strpos'(" end=")" contains=ALL
syn region pgsqlFunction		start="substr'(" end=")" contains=ALL
syn region pgsqlFunction		start="substring'(" end=")" contains=ALL
syn region pgsqlFunction		start="tan'(" end=")" contains=ALL
syn region pgsqlFunction		start="text'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_pattern_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_pattern_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_pattern_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_pattern_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_pattern_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_pattern_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="text_smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="textcat'(" end=")" contains=ALL
syn region pgsqlFunction		start="texteq'(" end=")" contains=ALL
syn region pgsqlFunction		start="texticlike'(" end=")" contains=ALL
syn region pgsqlFunction		start="texticnlike'(" end=")" contains=ALL
syn region pgsqlFunction		start="texticregexeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="texticregexne'(" end=")" contains=ALL
syn region pgsqlFunction		start="textlen'(" end=")" contains=ALL
syn region pgsqlFunction		start="textlike'(" end=")" contains=ALL
syn region pgsqlFunction		start="textne'(" end=")" contains=ALL
syn region pgsqlFunction		start="textnlike'(" end=")" contains=ALL
syn region pgsqlFunction		start="textrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="textregexeq'(" end=")" contains=ALL
syn region pgsqlFunction		start="textregexne'(" end=")" contains=ALL
syn region pgsqlFunction		start="textsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="tideq'(" end=")" contains=ALL
syn region pgsqlFunction		start="tidrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="tidsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="time'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_mi_interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_mi_time'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_pl_interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="time_smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="timedate_pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="timemi'(" end=")" contains=ALL
syn region pgsqlFunction		start="timenow'(" end=")" contains=ALL
syn region pgsqlFunction		start="timeofday'(" end=")" contains=ALL
syn region pgsqlFunction		start="timepl'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_cmp_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_cmp_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_eq_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_eq_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_ge_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_ge_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_gt_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_gt_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_le_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_le_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_lt_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_lt_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_mi_interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_ne_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_ne_timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_pl_interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamp_smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_cmp_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_cmp_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_eq_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_eq_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_ge_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_ge_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_gt_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_gt_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_le_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_le_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_lt_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_lt_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_mi'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_mi_interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_ne_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_ne_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_pl_interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="timestamptz_smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_cmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_eq'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_ge'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_gt'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_hash'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_larger'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_le'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_lt'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_mi_interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_ne'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_pl_interval'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetz_smaller'(" end=")" contains=ALL
syn region pgsqlFunction		start="timetzdate_pl'(" end=")" contains=ALL
syn region pgsqlFunction		start="timezone'(" end=")" contains=ALL
syn region pgsqlFunction		start="tinterval'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalct'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalend'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervaleq'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalge'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalgt'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalle'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalleneq'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervallenge'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervallengt'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervallenle'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervallenlt'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalne'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalov'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalrel'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalsame'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="tintervalstart'(" end=")" contains=ALL
syn region pgsqlFunction		start="to_ascii'(" end=")" contains=ALL
syn region pgsqlFunction		start="to_char'(" end=")" contains=ALL
syn region pgsqlFunction		start="to_date'(" end=")" contains=ALL
syn region pgsqlFunction		start="to_hex'(" end=")" contains=ALL
syn region pgsqlFunction		start="to_hex'(" end=")" contains=ALL
syn region pgsqlFunction		start="to_number'(" end=")" contains=ALL
syn region pgsqlFunction		start="to_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="to_timestamp'(" end=")" contains=ALL
syn region pgsqlFunction		start="translate'(" end=")" contains=ALL
syn region pgsqlFunction		start="trunc'(" end=")" contains=ALL
syn region pgsqlFunction		start="uhc_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="unknownrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="unknownsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="upper'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_ascii'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_big5'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_euc_cn'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_euc_jp'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_euc_kr'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_euc_tw'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_gb18030'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_gbk'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_iso8859'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_iso8859_1'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_johab'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_koi8r'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_sjis'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_uhc'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_win1250'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_win1251'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_win1252'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_win1256'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_win1258'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_win866'(" end=")" contains=ALL
syn region pgsqlFunction		start="utf8_to_win874'(" end=")" contains=ALL
syn region pgsqlFunction		start="varbit'(" end=")" contains=ALL
syn region pgsqlFunction		start="varbit_recv'(" end=")" contains=ALL
syn region pgsqlFunction		start="varbit_send'(" end=")" contains=ALL
syn region pgsqlFunction		start="varbitcmp'(" end=")" contains=ALL
syn region pgsqlFunction		start="varbiteq'(" end=")" contains=ALL
syn region pgsqlFunction		start="varbitge'(" end=")" contains=ALL
syn region pgsqlFunction		start="varbitgt'(" end=")" contains=ALL
syn region pgsqlFunction		start="varbitle'(" end=")" contains=ALL
syn region pgsqlFunction		start="varbitlt'(" end=")" contains=ALL
syn region pgsqlFunction		start="varbitne'(" end=")" contains=ALL
syn region pgsqlFunction		start="varchar'(" end=")" contains=ALL
syn region pgsqlFunction		start="varchar'(" end=")" contains=ALL
syn region pgsqlFunction		start="varcharrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="varcharsend'(" end=")" contains=ALL
syn region pgsqlFunction		start="version'(" end=")" contains=ALL
syn region pgsqlFunction		start="width'(" end=")" contains=ALL
syn region pgsqlFunction		start="width_bucket'(" end=")" contains=ALL
syn region pgsqlFunction		start="win1250_to_latin2'(" end=")" contains=ALL
syn region pgsqlFunction		start="win1250_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="win1250_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="win1251_to_iso'(" end=")" contains=ALL
syn region pgsqlFunction		start="win1251_to_koi8r'(" end=")" contains=ALL
syn region pgsqlFunction		start="win1251_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="win1251_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="win1251_to_win866'(" end=")" contains=ALL
syn region pgsqlFunction		start="win1252_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="win1256_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="win1258_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="win866_to_iso'(" end=")" contains=ALL
syn region pgsqlFunction		start="win866_to_koi8r'(" end=")" contains=ALL
syn region pgsqlFunction		start="win866_to_mic'(" end=")" contains=ALL
syn region pgsqlFunction		start="win866_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="win866_to_win1251'(" end=")" contains=ALL
syn region pgsqlFunction		start="win874_to_utf8'(" end=")" contains=ALL
syn region pgsqlFunction		start="xideq'(" end=")" contains=ALL
syn region pgsqlFunction		start="xideqint4'(" end=")" contains=ALL
syn region pgsqlFunction		start="xidrecv'(" end=")" contains=ALL
syn region pgsqlFunction		start="xidsend'(" end=")" contains=ALL

" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_pgsql_syn_inits")
  if version < 508
    let did_pgsql_syn_inits = 1
    command -nargs=+ HiLink hi link <args>
  else
    command -nargs=+ HiLink hi def link <args>
  endif

  HiLink pgsqlKeyword		 Statement
  HiLink pgsqlSpecial		 Special
  HiLink pgsqlString		 String
  HiLink pgsqlNumber		 Number
  HiLink pgsqlVariable		 Identifier
  HiLink pgsqlComment		 Comment
  HiLink pgsqlType		 Type
  HiLink pgsqlOperator		 Statement
  HiLink pgsqlFlow		 Statement
  HiLink pgsqlFunction		 Function
  HiLink pgsqlCreate		 CREATE
  delcommand HiLink
endif

let b:current_syntax = "pgsql"

